var express = require('express');
var query = require("../util/dbHelper.js");
var router = express.Router();

router.post("/",(req ,res ,next) =>{
    let user = req.body.user;
    req.myPromise = query("SELECT * FROM `dt_mi_order_detail` WHERE `userName` = ?;", [user])//调用sql函数，查询符合uName的
        .then(results => {
            return {status:200,message:"",data:results};
        });
    next();
});
module.exports = router;
